package com.fang.mathtest;

import java.util.Scanner;

public class order {
    public static void main(String[] args) {

        test01();
    }
    private static void test01(){
        while (true) {
        System.out.println("菜单：1、酱香排骨，2、剁椒鱼头，3、硬炸肉");
        System.out.println("您好！请您开始点餐");
        System.out.println("请输入菜品编号：");
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

            switch (i) {
                case 1:
                    System.out.println("您好！您要的酱香排骨来了");
                    break;
                case 2:
                    System.out.println("您好！您要的剁椒鱼头来了");
                    break;
                case 3:
                    System.out.println("您好！您要的硬炸肉来了");
                    break;
                default:
                    System.out.println("对不起，没有您想要的该菜品,请重新点餐：");

            }
            if(i>0 &&i<4){
                break;
            }
        }
    }
    private static void test02(){
        for(int i = 1;i<=9;i++){
            for(int j = 1;j<=i;j++){
                System.out.print(i+"*"+j+"="+i*j+" ");
            }
            System.out.println();
        }
    }
}
